<?php
namespace app\common\service;
class OrderMergeCut extends Base
{
	/**
	 * 根据客户订单号获取合裁订单详情
	 *
	 * @author 飞燕
	 * @date 2021年5月8日
	 *
	 * @param String $clientOrdernum
	 * @param string $field
	 * @return array
	 */
	public function getInfoByClientOrdernum($clientOrdernum, $field='*') {
		if (empty($clientOrdernum)) return [];
		$where[]=['client_ordernum','like',"%".$clientOrdernum."%"];
		return db('order_merge_cut')->where($where)->field($field)->findOrEmpty();
	}
}

